package com.woniuxy.cloud.carl.order.common;

public enum TransStatusEnum {
    APPLY(1,"审批中"),AGREE(2,"通过"),REJECT(3,"驳回"),
    SENDING(4,"配送中"),OK(5,"完成");
    private Integer code;
    private String status;

    public static TransStatusEnum getEnum(Integer code){
        for (TransStatusEnum value : TransStatusEnum.values()) {
            if (value.code==code) return value;
        }
        return null;
    }


    public Integer getCode() {
        return code;
    }

    public String getStatus() {
        return status;
    }

    TransStatusEnum(Integer code, String status) {
        this.code = code;
        this.status = status;
    }
}
